<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>后台</title>
	<link rel="stylesheet" href="/static/admin/css/style.css">
	<script src="/static/admin/js/ckeditor/ckeditor.js"></script>
</head>

<body>
	<div class="wrap wrap-article-edit">
		<h1>文章管理</h1>
		<div class="tips"></div>
		<div class="box">
			<div class="box-title">添加/编辑文章</div>
			<div class="box-body">
				<form method="post" action="?id={$res['id']}" enctype="multipart/form-data">
					<table>
						<tr>
							<th width="80">标题：</th>
							<td>
								<input type="text" name="title" value="{$res['title']}">
							</td>
						</tr>
						<tr>
							<th>栏目：</th>
							<td><select name="cid">
									<option value="0">无</option>
									<option value="1" {if $res.id==1} selected>生活</option>
									<option value="13" {if $res.id==13} selected>—— 厨艺</option>
									<option value="14" {if $res.id==14} selected>—— 时装</option>
									<option value="2" {if $res.id==2} selected>资讯</option>
									<option value="9" {if $res.id==9} selected>—— 新闻资讯</option>
									<option value="10" {if $res.id==10} selected>—— 教育动态</option>
									<option value="11" {if $res.id==11} selected>—— 学术观点</option>
									<option value="12" {if $res.id==12} selected>—— 实事点评</option>
									<option value="3" {if $res.id==3} selected>编程</option>
									<option value="6" {if $res.id==6} selected>—— PHP</option>
									<option value="7" {if $res.id==7} selected>—— Java</option>
									<option value="8" {if $res.id==8} selected>—— Android</option>
									<option value="4" {if $res.id==4} selected>互联网</option>
									<option value="16" {if $res.id==16} selected>—— 网络理财</option>
									<option value="5" {if $res.id==5} selected>科技</option>
									<option value="15" {if $res.id==15} selected>—— 硬件</option>
								</select></td>
						</tr>
						<tr class="s-author">
							<th>作者：</th>
							<td><input type="text" name="author" value="{$res['author']}"></td>
						</tr>
						<tr class="s-keywords">
							<th>关键字：</th>
							<td><input type="text" name="keywords" value="{$res['keywords']}"><span>多个关键字
									请用英文逗号（,）分开</span></td>
						</tr>
						<tr class="s-description">
							<th>内容提要：</th>
							<td><textarea name="description">{$res['description']}</textarea><span>（内容提要请在 200
									个字以内）</span></td>
						</tr>
						<tr class="s-editor">
							<th>编辑内容：</th>
							<td><textarea name="content">{$res['content']}</textarea></td>
						</tr>
						<tr class="s-act">
							<th></th>
							<td><input type="submit" value="立即发布"><input type="submit" value="保存草稿" name="save"></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
	<script src="app/index.php/article/index"></script>
	<script>
		CKEDITOR.config.height = 400;
		CKEDITOR.config.width = "100%";
		CKEDITOR.replace("content");
	</script>
</body>

</html>